﻿using Abp.Domain.Entities.Auditing;
using SFGX.Mango.ExpressPersons;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace SFGX.Mango.BoxUses
{
	public class BoxUse : FullAuditedEntity
	{ 
		[ForeignKey(nameof(ExpressPersonId))]
		public virtual ExpressPerson  ExpressPerson { get; protected set; }
		/// <summary>
		/// ExpressPersonId
		/// </summary>
		public virtual int ExpressPersonId { get; set; }

		[Required]
		public string BoxType { get; set; }

		/// <summary>
		/// 领取数量
		/// </summary>
		[Required]
		public int BoxReceiveCount { get; set; }

		/// <summary>
		/// 发货数量 也就是用了多少
		/// </summary>
		public int BoxUseCount { get; set; }


		/// <summary>
		/// 是否处理了
		/// </summary>
		public bool IsHandler { get; set; }


		/// <summary>
		/// 处理备注
		/// </summary>
		public string HandlerNote { get; set; }


	}
}
